package StudyCode.summary.myfile;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ReadFileUsingScannerOneWords {
	public static void main(String[] args) throws IOException {

		try (Scanner s = new Scanner(new BufferedReader(new FileReader("E:\\迅雷下载\\test1.txt")))) {
			while (s.hasNext()) {
				System.out.println(s.next());
			}
		}
	}
}
